<%--
  Created by IntelliJ IDEA.
  User: skyADMIN
  Date: 15/8/30
  Time: 下午3:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="reg" class="com.lihuanyu.upcOA.model.userTable"></jsp:useBean>
<jsp:useBean id="register" class="com.lihuanyu.upcOA.service.register"></jsp:useBean>
<jsp:setProperty name="reg" property="*"></jsp:setProperty>
<%
    int flag = register.regIn(reg);
    if (flag==0){
%>
注册失败！
<%
    }else if (flag==1){
        %>
<script>
    alert("注册成功！");
    window.location.href="index.jsp";
</script>
<%
    }
    else {
        %>
<script>
    alert("注册成功，等待管理员审核");
    window.location.href="index.jsp";
</script>
<%
    }
%>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>
